package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Purchase;

/**
 * 批发采购订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-27
 */
public interface PurchaseMapper 
{
    /**
     * 查询批发采购订单
     * 
     * @param purchaseId 批发采购订单主键
     * @return 批发采购订单
     */
    public Purchase selectPurchaseByPurchaseId(Long purchaseId);

    /**
     * 查询批发采购订单列表
     * 
     * @param purchase 批发采购订单
     * @return 批发采购订单集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增批发采购订单
     * 
     * @param purchase 批发采购订单
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改批发采购订单
     * 
     * @param purchase 批发采购订单
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 删除批发采购订单
     * 
     * @param purchaseId 批发采购订单主键
     * @return 结果
     */
    public int deletePurchaseByPurchaseId(Long purchaseId);

    /**
     * 批量删除批发采购订单
     * 
     * @param purchaseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseByPurchaseIds(Long[] purchaseIds);
}
